import java.util.Scanner;


public class Guess {
    public static void main(String[] args) {
        Scanner s = new Scanner(System.in);
        int number = (int) (Math.random()*10);
        int guess = number-1;//guess必须有初始值

        while (number != guess){
            System.out.printf("猜数字。。。（0 ～ 9）");
            guess=s.nextInt();
        }

        System.out.print("猜中了。。。orz");
    }
}